<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Son</title>
  </head>
  <body>
    <h3>子组件</h3>

    <script src="./bundle.js"></script>
    <script>
      new Postmate.Model({
        sayHello() {
          console.log("成功了");
        }
      }).then(parent => {
        console.log("子组件接收", parent);
        parent.emit("some-event", "接收到了");
      });
    </script>
  </body>
</html>
